package com.glodon.paas.mail;

import java.util.Date;
import java.util.Map;

import javax.xml.bind.annotation.XmlRootElement;

/**
 * 邮件内容封装类, 需要设置基本的属性
 * 收件人列表：	to
 * 邮件主题	：	subject
 * 邮件内容	：	text
 * 
 * 如果text为空，可以设置根据模版发送邮件，需要设置
 * 模版名称	：	templateLocation，相对于classpath
 * 模板参数	：	templateParam
 * 
 * @author huangc
 */
@XmlRootElement(name = "MailMessageParam")
public class MailMessageParam {
	//模板文件路径
	private String templateLocation;
	//模板参数
	private Map<String, Object> templateParam;
	//邮件正文是否以html格式发送，默认true
	private boolean textHtml = true;
	

	private String from;

	private String replyTo;

	private String[] to;

	private String[] cc;

	private String[] bcc;

	private Date sentDate;

	private String subject;

	private String text;

	public String getTemplateLocation() {
		return templateLocation;
	}

	public void setTemplateLocation(String templateLocation) {
		this.templateLocation = templateLocation;
	}

	public Map<String, Object> getTemplateParam() {
		return templateParam;
	}

	public void setTemplateParam(Map<String, Object> templateParam) {
		this.templateParam = templateParam;
	}

	public boolean isTextHtml() {
		return textHtml;
	}

	public void setTextHtml(boolean textHtml) {
		this.textHtml = textHtml;
	}

	public String getFrom() {
		return from;
	}

	public void setFrom(String from) {
		this.from = from;
	}

	public String getReplyTo() {
		return replyTo;
	}

	public void setReplyTo(String replyTo) {
		this.replyTo = replyTo;
	}

	public String[] getTo() {
		return to;
	}

	public void setTo(String[] to) {
		this.to = to;
	}

	public String[] getCc() {
		return cc;
	}

	public void setCc(String[] cc) {
		this.cc = cc;
	}

	public String[] getBcc() {
		return bcc;
	}

	public void setBcc(String[] bcc) {
		this.bcc = bcc;
	}

	public Date getSentDate() {
		return sentDate;
	}

	public void setSentDate(Date sentDate) {
		this.sentDate = sentDate;
	}

	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}
}
